﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="film.aspx.cs" Inherits="IndividualTask.WebForm2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table align="left" border="10" style="width:100%">
     <tr> <td height="50" bgcolor="FFFFCC" align="center"><font size="6" />Сеть кинотеатров</td></tr>
</table>
        <br />
        <br />
        <br />
        <br />
<hr align="left" size="5" color="#F4A460" style="width: 100%"/>

<table border="10" style="width: 100%; height: 400px;">
    <tr>
        <td valign="top" style="width: 20%">
            <asp:HyperLink ID="HyperLink2" runat="server" Font-Size="X-Large" 
                NavigateUrl="~/index.aspx">Главная</asp:HyperLink>
            <br />
            <br />
           <asp:HyperLink ID="HyperLink1" runat="server" Font-Size="X-Large" 
                NavigateUrl="~/cinema.aspx">Кинотеатры</asp:HyperLink>
                         <br />
            <br />
            <asp:HyperLink ID="HyperLink3" runat="server" Font-Size="X-Large" 
                NavigateUrl="~/newSession.aspx">Новый сеанс</asp:HyperLink>
            <br />
            <br />
            <asp:HyperLink ID="HyperLink5" runat="server" Font-Size="X-Large" 
                NavigateUrl="~/logon.aspx">Вход</asp:HyperLink>
            <br />
            <br />
            <asp:Panel ID="Panel2" runat="server" Height="63px" Visible="False">
                <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/myAccount.aspx">Мой выбор!</asp:HyperLink>
                <br />
                <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Выйти" />
            </asp:Panel>
        </td>        
        <td valign="top"  >
            
           
            


             <asp:GridView ID="FilmTable" runat="server" AutoGenerateColumns="False" 
                BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                CellPadding="2" ForeColor="Black" GridLines="None" Width="405px">
                <AlternatingRowStyle BackColor="PaleGoldenrod" />
           <Columns>
            <asp:TemplateField HeaderText="Фильмы">
                <ItemTemplate>
                    <b>
                            <asp:HyperLink ID="HyperLink3"  runat="server" NavigateUrl='<%# "~/session.aspx?field2=" + DataBinder.Eval(Container.DataItem, "cinemaId").ToString() + "&field3="+DataBinder.Eval(Container.DataItem,"filmId").ToString() %>' >  <%#Eval("Title")%> </asp:HyperLink>
                            <br /><asp:Image ID="Image" runat="server" ImageUrl='<%#Eval("Link") %>' />  
                    </b>
                    <small>
                        <i>
                           <br /> <u>Продолжительность:</u> <%#Eval("Duration")%>
                            <br /> <u>Описание:</u><%#Eval("Description")%></i></small><br />

                </ItemTemplate>
            </asp:TemplateField>
           </Columns>
                <FooterStyle BackColor="Tan" />
                <HeaderStyle BackColor="Tan" Font-Bold="True" />
                <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                    HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                <SortedAscendingCellStyle BackColor="#FAFAE7" />
                <SortedAscendingHeaderStyle BackColor="#DAC09E" />
                <SortedDescendingCellStyle BackColor="#E1DB9C" />
                <SortedDescendingHeaderStyle BackColor="#C2A47B" />
            </asp:GridView> 



        </td>
    </tr>
</table>
<hr align="left" size="3" color="#F4A460" style="width: 100%"  />
        <h5 align="right" title="Авторские права автора"/>&copy;Письма <a href='mailto:demon_alexey@mail.ru' title='мой mail'/>сюда
    </div>
    </form>
</body>
</html>

